package com.hefei.blog.web.auth.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hefei.blog.core.data.AccountProfile;

public interface IAuthService {
	
	public String login(String loginName,String password,HttpServletRequest request,HttpServletResponse response);
	public String loginByToken(String loginName,String accessToken,HttpServletRequest request,HttpServletResponse response);
	public void writeLoginCookie(AccountProfile profile, HttpServletRequest request,HttpServletResponse response) throws Exception;

	public void putProfile(AccountProfile profile);
	
	public AccountProfile getProfile(Long userId);
}
